<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <title>开源声明</title>
        <style>
    :root {
        --primary-color: #2c3e50;
        --secondary-color: #3498db;
        --bg-color: #f8f9fa;
        --text-color: #34495e;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        line-height: 1.6;
        background: var(--bg-color);
        color: var(--text-color);
        padding: 20px 15px;
        position: relative;
    }

    h1 {
        color: var(--primary-color);
        font-size: 1.8em;
        margin: 0 0 30px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--secondary-color);
    }

    h2 {
        color: var(--primary-color);
        font-size: 1.3em;
        margin: 30px 0 15px;
        padding-left: 25px;
        position: relative;
    }

    h2::before {
        content: "▶";
        color: var(--secondary-color);
        position: absolute;
        left: 0;
        top: 0;
        font-size: 0.9em;
    }

    .section {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin: 15px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    ul {
        list-style: none;
        padding: 0 0 0 22px;
    }

    li {
        position: relative;
        margin: 10px 0;
        padding-left: 22px;
    }

    li::before {
        content: "✓";
        color: var(--secondary-color);
        position: absolute;
        left: 0;
        top: 0;
        font-weight: bold;
    }

    .menu-toggle {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 18px;
        border-radius: 8px;
        cursor: pointer;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9em;
    }

    /* 移动端菜单样式 */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background: white;
        padding: 20px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        z-index: 99;
        overflow-y: auto;
        flex-direction: column;
    }
	 /* 去除下划线的核心修改 */
    .mobile-menu a {
        text-decoration: none;  /* 去除下划线 */
        color: var(--text-color);
        margin: 4px 0;
        border-radius: 6px;
        transition: all 0.3s;
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 98;
    }

    .back-to-top {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        position: fixed;
        right: 20px;
        bottom: 80px;
        z-index: 100;
        background: var(--secondary-color);
        color: white;
        padding: 12px 18px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 开源声明特殊样式 */
    .opensource-badge {
        background: #2c3e50;
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 20px 0;
        font-size: 0.9em;
    }

    .opensource-badge::before {
        content: "★";
        color: #3498db;
    }
    </style>
    </head>
    <body>
        <button class="menu-toggle" onclick="toggleMenu()">
            ☰
            <span>开源声明</span>
        </button>

        <div class="menu-overlay" onclick="toggleMenu()"></div>

        <nav class="mobile-menu">
            <h3 style="margin-bottom: 20px;">目录</h3>
            <a href="#open-source">1. 开源声明</a>
            <a href="#liability">2. 责任限制</a>
            <a href="#third-party">3. 第三方内容</a>
            <a href="#legal">4. 法律适用</a>
        </nav>

        <h1>开源声明</h1>

        <div class="section" id="open-source">
            <h2>1. 开源声明</h2>
            <div class="opensource-badge">
                本应用为完全开源免费软件
            </div>
            <ul>
                <li>✅ 源码遵循MIT协议托管于 <a href="https://gitee.com/BuYaoPenXiangShui/xiangshui-music-player" target="_blank">Gitee仓库</a></li>
                <li>✅ 允许自由使用、修改和分发</li>
				<li>✅ 项目本身不提供、不存储任何资源</li>
            </ul>
        </div>
		

        <div class="section" id="liability">
            <h2>2. 责任限制</h2>
            <ul>
                <li>⚠️ 不对任何直接/间接损失承担责任</li>
                <li>⚠️ 不保证服务完全无中断</li>
                <li>⚠️ 用户需自行备份重要数据</li>
            </ul>
        </div>

        <div class="section" id="third-party">
            <h2>3. 第三方内容</h2>
            <ul>
                <li>🔗 不对第三方链接内容负责</li>
                <li>🔗 广告内容不代表本应用立场</li>
                <li>🔗 第三方服务需遵守各自条款</li>
            </ul>
        </div>

        <div class="section" id="legal">
            <h2>4. 法律适用</h2>
            <ul>
                <li>📜 遵守中华人民共和国法律法规</li>
                <li>📜 争议应提交应用运营地法院管辖</li>
                <li>📜 如条款与法律冲突，以法律为准</li>
            </ul>
        </div>

        <a href="#top" class="back-to-top">▲</a>
        <p>最后更新：2025年5月20日</p>

    </body>
    <script>
    // 菜单控制逻辑（与服务条款页面相同）
    function toggleMenu() {
        const menu = document.querySelector('.mobile-menu');
        const overlay = document.querySelector('.menu-overlay');
        const isActive = menu.classList.toggle('active');

        overlay.style.display = isActive ? 'block' : 'none';
        document.body.style.overflow = isActive ? 'hidden' : 'auto';
    }

    document.querySelectorAll('.mobile-menu a').forEach(link => {
        link.addEventListener('click', () => {
            toggleMenu();
            setTimeout(() => {
                const target = document.querySelector(link.getAttribute('href'));
                target.scrollIntoView({ behavior: 'smooth', block: 'start' });
            }, 300);
        });
    });

    // 返回顶部按钮控制（与服务条款页面相同）
    const backToTop = document.querySelector('.back-to-top');
    let lastScroll = 0;

    window.addEventListener('scroll', () => {
        const currentScroll = window.pageYOffset;
        const showThreshold = 300;

        if (currentScroll > showThreshold && currentScroll > lastScroll) {
            backToTop.classList.add('show');
        } else {
            backToTop.classList.remove('show');
        }

        lastScroll = currentScroll <= 0 ? 0 : currentScroll;
    });

    backToTop.addEventListener('click', (e) => {
        e.preventDefault();
        window.scrollTo({
            top: 0,
            behavior: 'smooth'
        });
    });
    </script>
</html>